#pragma once
#include "CPerson.h"

class CHashTable
{
public:
	CHashTable(void);
	~CHashTable(void);

	bool AddPerson();
	int CalculateHash(char* _sNachname);
	CPerson SearchPerson();
	unsigned long GetPersonCount();

private:
	// A(x) = .... mod xx
	static const int m_Modulo = 17;
	int m_HashTable[m_Modulo];
	
	CPerson* m_Personentabelle;
	unsigned long m_PersonCount;

	int Probe(int _hash);

};

